<ul>
    <li>mark</li>
    <li>lili</li>
    <li>jack</li>
</ul>
<script>
    //1、遍历数组
    var users=["foo","bar","tom"];
    for(let user of users){
        console.log(user);
    }
    //含有[Symble.iterator]函数
    console.dir(users);

    //2、遍历字符串
    let greeting="Hello for of";
    for(let c of greeting){
        console.log(c.toUpperCase()+",");
    }
    console.log(greeting[Symbol.iterator]);

    //3、遍历参数 arguments
    (function(){
        for(let str of arguments){
            console.log(str);
        }
    })(1,2,true,false,"hello");

    //4、遍历节点，NodeList
    var nodes=document.querySelectorAll("ul li");
    for(let node of nodes){
        node.innerHTML+=" for of";
    }
</script>